package com.stadium.bean;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Transient;

//场地管理订单实体类
@Entity
public class PlaceOrder {

	private int placeOrderId;
	private String startDate;// 起始时间
	private String endDate;// 结束时间
	private Integer placeId;// 场地id
	private Place place;// 场地实体类
	private Double allMoney;// 总价格
	// 订单描述
	// private String description;
	// 订单状态
	// 0:表示未审核 1:表示审核过了 2.已完成
	private Integer status = 0;
	// 租借人标志 即账号或者id
	private String borrowAccount;
	// 租借人名字
	private String borrowName;
	// 联系方式
	private String telephone;
	// 订单时间
	private String orderTime;

	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	public int getPlaceOrderId() {
		return placeOrderId;
	}

	public void setPlaceOrderId(int placeOrderId) {
		this.placeOrderId = placeOrderId;
	}

	public String getStartDate() {
		return startDate;
	}

	public void setStartDate(String startDate) {
		this.startDate = startDate;
	}

	public String getEndDate() {
		return endDate;
	}

	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}

	public Integer getPlaceId() {
		return placeId;
	}

	public void setPlaceId(Integer placeId) {
		this.placeId = placeId;
	}

	@Transient
	public Place getPlace() {
		return place;
	}

	public void setPlace(Place place) {
		this.place = place;
	}

	public Double getAllMoney() {
		return allMoney;
	}

	public void setAllMoney(Double allMoney) {
		this.allMoney = allMoney;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getBorrowAccount() {
		return borrowAccount;
	}

	public void setBorrowAccount(String borrowAccount) {
		this.borrowAccount = borrowAccount;
	}

	public String getBorrowName() {
		return borrowName;
	}

	public void setBorrowName(String borrowName) {
		this.borrowName = borrowName;
	}

	public String getTelephone() {
		return telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	public String getOrderTime() {
		return orderTime;
	}

	public void setOrderTime(String orderTime) {
		this.orderTime = orderTime;
	}

	public PlaceOrder(int placeOrderId, String startDate, String endDate, Integer placeId, Place place,
			Double allMoney) {
		super();
		this.placeOrderId = placeOrderId;
		this.startDate = startDate;
		this.endDate = endDate;
		this.placeId = placeId;
		this.place = place;
		this.allMoney = allMoney;
	}

	public PlaceOrder() {
		super();
	}

	@Override
	public String toString() {
		return "PlaceOrder [placeOrderId=" + placeOrderId + ", startDate=" + startDate + ", endDate=" + endDate
				+ ", placeId=" + placeId + ", place=" + place + ", allMoney=" + allMoney + "]";
	}

}
